package com.job.Gai_Yian.Homework0712;

/**
 * @author Gai_Yian
 * @version 1.0
 * @since 2022-07-13 10:43:13
 */
public class AttackFactory {
    public static Attack getAttack(int method){
        if (method==1){
            return new Pounce();
        }
        else if (method==2){
            return new Bite();
        }
        else if (method==3){
            return new Claw();
        }
        else{
            return null;
        }
    }
}
